package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.entity.SysUser;
import lombok.Data;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 最爱喝兽奶
 * @create 2022/7/30
 **/
@Data
@TableName("T_COMMENT")
public class Comment implements Serializable {

    @TableId(type = IdType.AUTO)
    private String id;

    @TableField(value = "parent_id")
    private String parentId;

    /**
     * 课程id
     */
    @TableField(value = "course_id")
    private String courseId;

    @TableField(value = "comment_user")
    private String commentUser;

    @TableField(exist = false)
    private SysUser commentUserVo;

    @TableField(value = "comment_time")
    private Date commentTime;

    /**
     * 点赞数
     */
    @TableField(value = "fabulous")
    private Long fabulous;

    /**
     * 评论内容
     */
    @TableField(value = "comment_context")
    private String commentContext;

    /**
     * 踩的数量
     */
    @TableField(value = "stamp")
    private Long stamp;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

}
